package com.ucar.train.service.wufuqiang;

import java.util.List;

/**
 * @author wufuqiang
 * @title: Car
 * @projectName:wufuqiang_thread
 * @description: T0D0
 * @created 2019-08-21 16:54
 */
public class Car {

    //加机油
    private boolean oil = false;
    //换轮胎
    private boolean tire = false;
    //发动机
    private boolean engine = false;
    //变速箱
    private boolean gearbox = false;

    public Car(){
        super();
    }

    public boolean isOil() {
        return oil;
    }

    public void setOil(boolean oil) {
        this.oil = oil;
    }

    public boolean isTire() {
        return tire;
    }

    public void setTire(boolean tire) {
        this.tire = tire;
    }

    public boolean isEngine() {
        return engine;
    }

    public void setEngine(boolean engine) {
        this.engine = engine;
    }

    public boolean isGearbox() {
        return gearbox;
    }

    public void setGearbox(boolean gearbox) {
        this.gearbox = gearbox;
    }

    @Override
    public String toString() {
        return "Car{" +
                "oil=" + oil +
                ", tire=" + tire +
                ", engine=" + engine +
                ", gearbox=" + gearbox +
                '}';
    }
}
